package com.czx.dagger2demo;

import dagger.Module;
import dagger.Provides;

/**
 * TODO: Add a class header comment!
 */

@Module
public class ActivityModule {

    @Provides
    public HelloDagger provideHelloDagger(){
        return new HelloDagger("Hello Dagger!");
    }

    @PoetryScope
    @Provides
    public Poetry providePoetry(String poem){
        return new Poetry(poem);
    }

    @Provides
    public String providePoem(){
        return "生活就像海洋";
    }
}